Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some style nits #1278

Closed
wants to merge 2 commits into from
Closed

Conversation

ryan-williams
Copy link
Member

basically just cleared up the intellij warnings in two files I was working in for #1277:

  • unused imports
  • many no-op else records branches of RDD-instrumenting-if-statements
  • some .size->.length changes
  • some unnecessary .toSeqs

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1621/
Test PASSed.

@@ -480,7 +472,10 @@ class ADAMContext private (@transient val sc: SparkContext) extends Serializable
sc.newAPIHadoopFile(filePath, classOf[AnySAMInputFormat], classOf[LongWritable],
classOf[SAMRecordWritable], ContextUtil.getConfiguration(job))
}
if (Metrics.isRecording) records.instrument() else records

if (Metrics.isRecording)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I'll probably get downvoted, I prefer to always have curly braces

if (Metrics.isRecording) {
  records.instrument()
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also an "always braces" type.

@heuermh heuermh mentioned this pull request Dec 2, 2016
@heuermh
Copy link
Member

heuermh commented Dec 15, 2016

Would it be ok to close this without merging?

@fnothaft
Copy link
Member

@heueh +1

@heuermh heuermh closed this Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants